html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  background: url("./bg.webp") no-repeat;
  background-size: cover;
}

ul {
  padding: 0;
  margin: 0 0 0 15px;
  list-style: none;
  display: flex;
  height: 90%;
  flex-direction: column;
  width: 250px;
  position: relative;
  .small-menu {
    cursor: pointer;
    position: absolute;
    width: 20%;
    left: 0;
    top: 5px;
    height: 40px;
    transition: all 1s;
    overflow: hidden;
    span {
      display: block;
      width: 100%;
      height: 10px;
      border-radius: 5px;
      background-color: #fff;
      margin-bottom: 5px;
    }
    &.active {
      height: 0;
    }
  }

  li {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #fff;
    transform-origin: 0% 0%;
    height: 10%;
    padding: 0 20px;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    transition: all 0.2s linear;
    .close {
      font-weight: bold;
      cursor: pointer;
    }
    &.ctrl {
      justify-content: space-between;
      background-color: rgba($color: #fff, $alpha: 0.6);
    }

    @for $i from 1 through 10 {
      &:nth-of-type(#{$i}) {
        top: ($i - 1) * 10%;
        transition-delay: (10 - $i) * 0.1s;
        &.active {
          left: 0;
          top: $i * 1px;
          transform: scaleX(0.13) scaleY(0);
          transition-delay: ($i - 1) * 0.1s;
        }
      }
    }
  }
}
